package conf

import "os"

var (
	aPPAuthUrl = "http://192.168.1.178:9999"
)

var(
	redisHost="192.168.1.91"
	redisPort="6379"
	redisAuth="123"
)

var(
	openPort=":8081"
)


func init() {
	if os.Getenv("Redis_Host") !=""{
		redisHost=os.Getenv("Redis_Host")
	}
	if os.Getenv("Redis_Port") !=""{
		redisPort=os.Getenv("Redis_Port")
	}
	if os.Getenv("Redis_Auth") !=""{
		redisAuth=os.Getenv("Redis_Auth")
	}
	if os.Getenv("APP_Auth_URL") !=""{
		aPPAuthUrl=os.Getenv("APP_Auth_URL")
	}
	if os.Getenv("Open_Port") !=""{
		openPort=os.Getenv("Open_Port")
	}
}

func OpenPort() string{
	return openPort
}

func RedisHost() string{
	return redisHost
}

func RedisPort() string{
	return redisPort
}
func RedisAuth() string{
	return redisAuth
}
func APPAuthUrl() string{
	return aPPAuthUrl
}